package com.redhat.redwork.widget.select;

import java.util.Map;

import com.dayatang.querychannel.service.QueryChannelService;

/**
 * a facility to build dropdowns by config
 * 
 * @author Justin
 * 
 */
public class GenericEntitySelectModel implements SelectModel {

	/** entity class name */
	Class<?> className;

	/** property as dropdown label */
	String key;

	/** property as dropdown value */
	String value;

	/** property mapping to selected value of parent dropdown */
	String parent;
	
	QueryChannelService queryChannel;
	
	@Override
	public Map<Object, Object> loadData(String parentValue) {
		// TODO Auto-generated method stub
		throw new UnsupportedOperationException("not implement yet");
	}

	public void setQueryChannel(QueryChannelService queryChannel) {
		this.queryChannel = queryChannel;
	}

	public void setClassName(Class<?> className) {
		this.className = className;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}
}
